package com.flyme.module.file.provider.service.impl;

import com.flyme.core.base.supper.service.impl.BaseServiceImpl;
import com.flyme.module.file.client.entity.SysIndextag;
import com.flyme.module.file.provider.mapper.SysIndextagMapper;
import com.flyme.module.file.provider.service.SysIndextagService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class SysIndextagServiceImpl extends BaseServiceImpl<SysIndextagMapper,SysIndextag> implements SysIndextagService {
	
	/**
	 * 查询所有首页展示模块
	 */
	public List<Map<String, Object>> selectShow(){
		return listMaps(q().eq("isShow", 1).orderByAsc("sortOrder"));
	}

	@Override
	public List<SysIndextag> selectAllTag() {
		return list(q().ne("isShow", 0));
	}
}
